package com.eastfair.transport.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.eastfair.boot.request.PageParams;
import com.eastfair.boot.service.SuperService;
import com.eastfair.core.base.R;
import com.eastfair.transport.dto.CustomsClearanceDTO;
import com.eastfair.transport.dto.CustomsClearancePageQuery;
import com.eastfair.transport.entity.CustomsClearance;
import com.eastfair.transport.vo.CustomsClearanceVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 清关商品
 * </p>
 *
 * @author linan
 * @date 2022-07-21
 */
public interface CustomsClearanceService extends SuperService<CustomsClearance> {

    /**
     * 添加清关商品
     * @param customsClearanceDTO customsClearanceDTO
     * @return R<Boolean>
     */
    R<Boolean> addCustomsClearance(CustomsClearanceDTO customsClearanceDTO);

    /**
     * 清关商品列表
     * @param customsClearancePageQuery
     * @return
     */
    R<IPage<CustomsClearanceVO>> queryCustomsClearance(PageParams<CustomsClearancePageQuery> customsClearancePageQuery);

    /**
     * 删除清关商品
     * @param customsClearanceDTO customsClearanceDTO
     * @return Boolean
     */
    Boolean delCustomsClearance(List<CustomsClearanceDTO> customsClearanceDTO);

    /**
     * 编辑清关商品
     * @param customsClearanceDTO customsClearanceDTO
     * @return R<Boolean>
     */
    R<Boolean> updateCustomsClearance(CustomsClearanceDTO customsClearanceDTO);
}
